
CC=gcc
AR=ar

#
# Modify these params if the commands are somewhere else
#

SED=sed
CP=cp
MV=mv
LN=ln -sf
RM=rm -f
CHMOD=chmod

XML2_CFLAGS=`xml2-config --cflags`
XML2_LIBS=`xml2-config --libs`

AFC_CFLAGS=`afc-config --cflags`
AFC_LIBS=`afc-config --libs`

CFLAGS=-fPIC -g -Wall -O2 $(XML2_CFLAGS) $(AFC_CFLAGS)
LIBS=$(XML2_LIBS) $(AFC_LIBS)
LIBFLAGS=-shared 

#
# Modify these params to copy files in different locations
#
LIBDIR=/usr/local/lib
BINDIR=/usr/local/bin
INCDIR=/usr/local/include

test:	xmlparser.test

xmlparser.test:	../xmlparser.c ../xmlparser.h 
	@$(CC) -DTEST_CLASS $(CFLAGS) -o xmlparser.test -g -Wall ../xmlparser.c $(LIBS)

clean:
	@$(RM) -f xmlparser.test 2>/dev/null
